#include<iostream>
#include<Eigen/Dense>

using namespace std;
using namespace Eigen;

int main(int argc,char** argv){

    Array22f m;
    m << 1,2,3,4;

    Array44f a = Array44f::Constant(0.6);
    cout << "Here is the array a:\n" << a << "\n\n";
    a.block<2,2>(1,1) = m;
    cout << "Here is now a with m copied into its central 2x2 block:\n" << a <<"\n\n";

    Matrix4f m1 = a.matrix();
    cout << "Matrix row 1 : \n" << m1.row(1) << endl;
    cout << "Matrix col 1 : \n" << m1.col(1) << endl;


    return 0;
}
